import React, { Component } from "react";
import { Button } from "antd";
interface IEdit {
  obj: object;
  callback: (obj: object) => void;
}
export default class EditUser extends Component<IEdit, any> {
  editfun = () => {
    this.props.callback(this.props.obj);
  };
  render() {
    return (
      <div>
        <Button type="default" onClick={this.editfun}>
          编辑
        </Button>
      </div>
    );
  }
}
